using System;
using System.Collections.Generic;
using System.Text;

using Domain;

namespace Persistence.IDao {
	
    /// <summary><c>IManagerDao</c> is the DAO interface for <see cref="Domain.Manager"/>.</summary>
    public partial interface IManagerDao {        
		
		/// <summary>get models by condition</summary>
		IList<Manager> GetModels(string columnNames , string condition);
		
		/// <summary>get paged models by condition </summary>
		IList<Manager> GetModels(string columnNames,string condition,string orderBy,int pageSize ,int pageIndex);
		
		/// <summary>Returns the total count of objects.</summary>
		int GetCount();
		
		/// <summary>Returns the count of objects by condition.</summary>
		int GetCount(string condition);

		/// <summary>Finds a <see cref="Manager"/> instance by the primary key value.</summary>
		Manager GetModel(Int32 managerId);

		/// <summary>Inserts a new Manager instance into underlying database table.</summary>
		void Insert(Manager obj);
		
		/// <summary>Update the underlying database record of a Manager instance.</summary>
		bool Update(Manager obj);
		
		/// <summary>Delete the underlying database record of a Manager instance.</summary>
		bool Delete(Manager obj);
		
	}

}
